package LesThreads;

public class ThrAff extends Thread {
	private Nombres nomb;
	public ThrAff (Nombres nomb){
		this.nomb = nomb ;
	}
	public void run(){
		try {
			while(!interrupted()){
				nomb.affiche();
				sleep(2);
			}
			
		} catch (InterruptedException e) {
			// TODO: handle exception
		}
	}
}
